// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'SupplierId',
        footer: "Foots",
        cnName: '供应商管理',
        name: 'suppliermodel',
        url: "/suppliermodel/",
        sortName: "SupplierId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"SupplierCode":"","SupplierName":"","SupplierAbbreviation":"","SupplierPhone":"","SupplierCreditCode":"","SupplierAddress":"","SupplierRemarks":""};
    const editFormOptions = [[{"title":"供应商编码","field":"SupplierCode","type":"text"},
                               {"title":"供应商名称","field":"SupplierName","type":"text"}],
                              [{"title":"供应商简称","field":"SupplierAbbreviation","type":"text"},
                               {"title":"供应商联系方式","field":"SupplierPhone","type":"text"}],
                              [{"title":"供应商信用代码","field":"SupplierCreditCode","type":"text"}],
                              [{"title":"供应商地址","field":"SupplierAddress","type":"textarea"}],
                              [{"title":"供应商备注","field":"SupplierRemarks","type":"textarea"}]];
    const searchFormFields = {"SupplierCode":"","SupplierName":""};
    const searchFormOptions = [[{"title":"供应商编码","field":"SupplierCode","type":"like"},{"title":"供应商名称","field":"SupplierName","type":"like"}]];
    const columns = [{field:'SupplierId',title:'供应商id',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'SupplierCode',title:'供应商编码',type:'string',width:120,align:'left',sort:true},
                       {field:'SupplierName',title:'供应商名称',type:'string',width:120,align:'left'},
                       {field:'SupplierAbbreviation',title:'供应商简称',type:'string',width:120,align:'left'},
                       {field:'SupplierPhone',title:'供应商联系方式',type:'string',width:110,align:'left'},
                       {field:'SupplierAddress',title:'供应商地址',type:'string',width:180,align:'left'},
                       {field:'SupplierCreditCode',title:'供应商信用代码',type:'string',width:180,align:'left'},
                       {field:'SupplierRemarks',title:'供应商备注',type:'string',width:180,align:'left'},
                       {field:'CreateUserName',title:'创建人',type:'string',width:120,hidden:true,align:'left'},
                       {field:'UpdateUserName',title:'修改人',type:'string',width:120,align:'left'},
                       {field:'CreateTime',title:'创建时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'UpdateTime',title:'更新时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'IsDeleted',title:'软删除',type:'sbyte',width:110,hidden:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}